package com.keller.dao;

import com.keller.domian.Traveller;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TravellerDao {

    @Select("select *  from traveller where id in (select travellerid from order_traveller \n" +
            "where orderid = #{id})")
    public List<Traveller> findTravellerByOrdersId(String id);
}
